package com.xiaotu.model;

import com.xiaotu.handler.ArrayTypeHandler;
import lombok.Data;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @author 张晓
 * @create 2021-07-07 14:20
 */
@Data
@Table(schema = "basicinfo", name = "tab_tv_info")
public class TvModel {

    //剧id
    private String tvid;

    //剧名
    @Column(name = "tvname")
    private String tvName;

    //别名
    @Column(name = "alias")
    @ColumnType(column = "alias", typeHandler = ArrayTypeHandler.class)
    private String[] alias;

    //剧类型
    @Column(name = "tvtype")
    private String tvType;

    //图片路径
    @Column(name = "imageurl")
    private String imageUrl;

    //剧类型
    @Column(name = "showtype")
    private String showType;

    //播出平台
    @Column(name = "platform")
    @ColumnType(column = "platform", typeHandler = ArrayTypeHandler.class)
    private String[] platForm;

    //首播时间
    @Column(name = "firstplaytime")
    private String firstPlayTime;

    //主演
    @ColumnType(column = "actor", typeHandler = ArrayTypeHandler.class)
    private String[] actor;

    //导演
    @ColumnType(column = "director", typeHandler = ArrayTypeHandler.class)
    private String[] director;

    //编剧
    @Column(name = "screenwriter")
    @ColumnType(column = "screenwriter", typeHandler = ArrayTypeHandler.class)
    private String[] screenWriter;

    //年份
    @Column(name = "releasetime")
    @ColumnType(column = "releasetime", typeHandler = ArrayTypeHandler.class)
    private String releaseTime;

    //出品公司
    @Column(name = "sellcompany")
    @ColumnType(column = "sellcompany", typeHandler = ArrayTypeHandler.class)
    private String[] sellCompany;

}
